﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Sinbiota.Web.Models
{
    public class DictionaryTable
    {
        public IDictionary<string ,string > Dictionary { get; set;}
        public string KeyTitle { get; set; }
        public string ValueTitle { get; set; }

        public DictionaryTable(IDictionary<string , string > dictionary, string keyTitle, string valueTitle)
        {
            Dictionary = dictionary;
            KeyTitle = keyTitle;
            ValueTitle = valueTitle;
        }
        public DictionaryTable(IDictionary<string,  int> dictionary, string keyTitle, string valueTitle)
        {
            Dictionary = dictionary.ToDictionary(x => x.Key, x=> x.Value.ToString());
            KeyTitle = keyTitle;
            ValueTitle = valueTitle;
        }
    }

}